package com.tanger.es;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

/**
 * @Description TODO
 * @Author Hchenbin
 * @Date 2023-12-11 14:00
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ESKeyword {

    @Field(type = FieldType.Keyword, store = true)//对该字段单独存储倒排索引
    private String id;
    @Field(type = FieldType.Keyword, store = true)//对该字段单独存储倒排索引
    private List<String> keywords;
    @Field
    private Integer priority;
}
